<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Logs */
/* @var $form yii\widgets\ActiveForm */
?>


<?php $form = ActiveForm::begin([
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-sm-10  col-sm-6\">{input}<label class='error'>{error}</label></div>",
            'labelOptions' => ['class' => 'col-sm-2 bx_label'],
        ],
    ]); ?>
    <div class="ibox-content">
        <?= $form->field($model, 'user_id')->textInput() ?>

        <?= $form->field($model, 'log_url')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'log_info')->textarea(['rows' => 6]) ?>

        <?= $form->field($model, 'log_ip')->textInput(['maxlength' => true]) ?>

        <div class="form-group">
            <div class="col-sm-8  col-sm-offset-2">
                <?= Html::submitButton($model->isNewRecord ? '提交' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
            </div>
        </div>
    </div>
<?php ActiveForm::end(); ?>

